package com.springboot.result;

/**
 * @Author: BinZhang
 * @Date: 2018/10/20 23:03
 * @Description:返回值
 */
public enum ResultCodeEnum {
    SUCCESS("成功", 0, "操作成功!"),
    FAIL("失败", -1, "操作失败!");

    private int code;
    private String name;
    private String message;

    ResultCodeEnum(String name, int code, String message) {
        this.name = name;
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public String getMessage() {
        return message;
    }
}
